var nmap = require('node-nmap');

nmap.nmapLocation = "nmap"; //default

//    Accepts array or comma separated string of NMAP acceptable hosts
var quickscan = new nmap.NmapScan('192.168.10.176', '-sS');

quickscan.on('complete', function(data){
  console.log(JSON.stringify(data));
});

quickscan.on('error', function(error){
  console.log(error);
});

quickscan.startScan();
